<template>
  <div class="mpmp">
      <van-sticky>
      <Todaytop/>
       </van-sticky>
      <div class="ko">
           <img src="d1.png" alt="">
      </div>
     <div class="ok">
         <img src="d2.jpg" alt="">
     </div>
     <div class="oo"> 
         <ul class="xia">
         <Tz v-for="(v,i) in arra" :key="i" :cakeimage="v.cakeimage" :cakename="v.cakename" :brandname="v.brandname" :cakeprice="v.cakeprice" :cakeoriginal="v.cakeoriginal" :rec="v.rec"/>
     </ul>
      <div class="okk">
         <img src="b3.jpg" alt="">
     </div>
     <ul class="xia2">
         <Tm v-for="(v,i) in arrb" :key="i" :cakeimage="v.cakeimage" :cakename="v.cakename" :brandname="v.brandname" :cakeprice="v.cakeprice" :cakeoriginal="v.cakeoriginal" :rec="v.rec" :send="v.send"/>
     </ul>
     <div class="but">
           <span class="cha"><router-link to="/all/erx">查看更多</router-link></span>
     </div>
     </div>
    
  </div>
</template>

<script>
import Tz from "c/cakeC/todayzi.vue"
import Tm from "c/cakeC/tomm.vue"
import Todaytop from "@/components/cakeC/todaytop.vue"
import {getlink} from "a/getapi.js"
export default {
    data(){
        return{
            arra:[
                
            ],
            arrb:[],
        }
    },
    mounted(){
        getlink("/demo/data").then((ok)=>{
            this.arra=ok.data.arr1,
            this.arrb=ok.data.arr2
        })
    },
    components:{
        Tz,
        Tm,
        Todaytop
    }
}
</script>

<style scoped>

.ko{
    width: 3.75rem;
    height: 1.84rem;
}
.ko img,.ok img,.okk img{
    display:block;
    width: 100%;
    height: 100%;
}
.ok,.okk{
    width: 3.75rem;
    height: 0.6rem;
}
.okk{
    margin-top:0.04rem;
    /* margin-bottom:0.04rem */
}
.oo{
     padding: 0.04rem;
     background-color: #f9f9f9;
}
.xia,.xia2{
    margin:0 auto;
    width:100%;
    margin-top: 0.04rem;
    overflow-x: none;
    background-color: #f9f9f9;
}
.but{
    margin: 0.25rem 0.6rem;
}
.cha{
    font-size:0.16rem;
    height: 0.44rem;
    display: block;
    width: 100%;
    border-radius: 0.22rem;
    border: #e8e8e8 1px solid;
    color: rgba(0, 0, 0, 0.54);
    text-align:center;
    line-height:0.44rem
}
</style>